package com.mijie.homi.admin.service.mood;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.homi.admin.dao.mood.MoodInfoDao;
import com.mijie.homi.common.domain.mood.MoodInfo;

@Service
public class MoodInfoService {

	@Autowired
	private MoodInfoDao dao;
	
	public int addMoodInfo(MoodInfo info){
		return dao.addMoodInfo(info);
	}
	
	public int updateMoodInfo(MoodInfo info){
		return dao.updateMoodInfo(info);
	}
	
	public MoodInfo getMoodInfoById(int id){
		return dao.getMoodInfoById(id);
	}
	
	public List<MoodInfo> listMoodInfo(){
		return dao.listMoodInfo();
	}
}
